package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 小程序首页对象 biz_index_page
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2022-10-31
 */
@Data
public class IndexPage extends BaseEntity<IndexPage> {
    private static final long serialVersionUID = 1L;


    /**
     * 类型
     */
    @Excel(name = "类型")
    private String indexType;

    /**
     * 访问路径
     */
    @Excel(name = "访问路径")
    private String path;

    /**
     * 图片
     */
    private String imageUrl;

    /**
     * 标题
     */
    private String title;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态（0正常 1 停用）
     */
    @NotBlank(message = "状态（0正常 1 停用）不允许为空")
    private String status;

 
    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }

    public String getIndexType() {
        return indexType;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("userId", getUserId()).append("deptId", getDeptId()).append("userName", getUserName()).append("deptName", getDeptName()).append("companyId", getCompanyId()).append("indexType", getIndexType()).append("path", getPath()).append("imageUrl", getImageUrl()).append("title", getTitle()).append("sort", getSort()).append("status", getStatus()).append("remark", getRemark()).append("id", getId()).append("createBy", getCreateBy()).append("createDept", getCreateDept()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("updateIp", getUpdateIp()).append("version", getVersion()).append("delFlag", getDelFlag()).toString();
    }
}
